<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
use Illuminate\Support\Facades\Route;



Route::get('/', function () {
    return view('admin/admin');
});



Route::get("articles", "admin\ArticleController@articles");
Route::get("articlepage", "admin\ArticleController@articlepage");
Route::post("articleinsert", "admin\ArticleController@articleinsert");
Route::post('admin/article/ar_file',"admin\ArticleController@ar_file");
Route::get('updatearticle',"admin\ArticleController@updatearticle");



Route::get("types", "admin\Typecontroller@types");
Route::get("addtype", "admin\Typecontroller@addtype");
Route::post("insertType", "admin\Typecontroller@insertType");
Route::get("updateType", "admin\Typecontroller@updateType");
Route::get("deleteType", "admin\Typecontroller@deleteType");




Route::get("addslider", "admin\SliderController@addslider");
Route::post("insertslider", "admin\SliderController@insertslider");
Route::get("sliders", "admin\SliderController@sliders");
Route::get("updateslider", "admin\SliderController@updateslider");
Route::get("deleteslider", "admin\SliderController@deleteslider");

